package com.ficv.tucanalmovil.dominio;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.ManyToMany;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(finders = { "findDevicesByAndroidIdEquals" })
public class Device {

    private String androidId;

    private String numero;

    private String owner;

    private String mensaje;

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Avisos> avisos = new HashSet<Avisos>();
}
